home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970326-19970626 / 000214_news@newsmaster….columbia.edu _Sun May 18 15:47:50 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA02224
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Sun, 18 May 1997 15:47:50 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id PAA29652
  7.     for kermit.misc@watsun; Sun, 18 May 1997 15:47:49 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: Script Input Error
  12. Date: 18 May 1997 19:47:48 GMT
  13. Organization: Columbia University
  14. Lines: 43
  15. Message-ID: <5lnmd4$sui$1@newsmaster.cc.columbia.edu>
  16. References: <337DC0C3.5D6B@wwa.com> <5lkfi2$48t$1@newsmaster.cc.columbia.edu> <Oohfz4qd5rpS089yn@xmission.com> <337F4817.6DC2@wwa.com>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:7052
  19.  
  20. In article <337F4817.6DC2@wwa.com>, Jim Jacobus  <jjacobus@wwa.com> wrote:
  21. : Jim Janney wrote:
  22. : > In article <337DC0C3.5D6B@wwa.com>, Jim Jacobus  <jjacobus@wwa.com> wrote:
  23. : > > I'm trying to write a telnet script using VMS C-kermit 6.0.192 to
  24. : > > connect to ...
  25. : > > I can't get a response back from my script. I have an
  26. : > > "input 5 login:" which should work, but I always get an error from
  27. : > > my VMS Kermit:
  28. : > > ? Can't condition line for INPUT
  29. : > ...
  30. : > When I changed this to
  31. : > 
  32. : >    set network tcp/ip
  33. : >    set host bix.com
  34. : >    input 5 login
  35. : > 
  36. : > it started to work as I had intended.
  37. : ohmygosh! That worked. Thanks. -- Jim
  38. :
  39. Right.  TELNET xxx means (roughly) "set network tcp/ip, set host xxx, if
  40. success connect".  In other words, TELNET at the Kermit prompt does roughly
  41. what "telnet" at the system prompt would do.
  42.  
  43. But scripts do not execute while in CONNECT mode.  CONNECT (or TELNET) is
  44. just another command in the script; the next command is executed after
  45. Kermit reterns from CONNECT mode.  Of course this is documented in the
  46. manual, which also shows numerous examples of how to write scripts for
  47. Telnet connections, using SET HOST.
  48.  
  49. If your script looked like this:
  50.  
  51.   telnet blah
  52.   input 10 login:
  53.  
  54. then probably what happened is you got the interactive terminal screen,
  55. saw the login prompt, and then logged out or disconnected.  At this point
  56. Kermit returns to its command processor and executes the INPUT command,
  57. but at this point the connection has been closed, and hence the message:
  58.  
  59.   ?Can't condition line for INPUT
  60.  
  61. - Frank